import React, {useState} from 'react';
import {View,Image,Text} from "@tarojs/components";
import picLaba from './icon_laba.png'
import picClosed from './icon_closed.png'

import './index.scss'

const CommentTip = ({children}) => {

  const [state,setState]=useState(true)

  return state&&(
    <View className="commentTip">
      <Image src={picLaba} className="item" />
      <Text className="item">{children}</Text>
      <Image src={picClosed}  className="item" onClick={()=>setState(false)} />
    </View>
  )
}

export default CommentTip
